Skip to content

Support Swift Testing in Test helpers#920

Merged
rauhul merged 1 commit into
mainfrom
bkhouri/t/main/update_test_helpers_to_support_swift_testing
Jul 17, 2026
Merged

Support Swift Testing in Test helpers#920
rauhul merged 1 commit into
mainfrom
bkhouri/t/main/update_test_helpers_to_support_swift_testing

Conversation

@bkhouri

@bkhouri bkhouri commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Update some of the test helpers to support both XCTest and Swift Testing
API to help with migrating test to Swift Testing.

Relates to: #710

Checklist

  • I've added at least one test that validates that my change is working, if appropriate
  • I've followed the code style of the rest of the project
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary

@bkhouri
bkhouri force-pushed the bkhouri/t/main/update_test_helpers_to_support_swift_testing branch from 66c726d to 476dd38 Compare July 10, 2026 13:17
@natecook1000

Copy link
Copy Markdown
Member

@grynspan Any issues with starting this migration?

@grynspan

Copy link
Copy Markdown

Nope, go for it. Our possible dependency on Swift Argument Parser will be in an executable target only, i.e. a leaf node in the dependency graph, so no risk of a circular dependency.

@bkhouri
bkhouri force-pushed the bkhouri/t/main/update_test_helpers_to_support_swift_testing branch 2 times, most recently from a7395b3 to 79bfb24 Compare July 16, 2026 16:46
@bkhouri
bkhouri force-pushed the bkhouri/t/main/update_test_helpers_to_support_swift_testing branch from 79bfb24 to 141e34e Compare July 16, 2026 17:32
@bkhouri bkhouri changed the title Migrate some tests to Swift Testing Support Swift Testing in Test helpers Jul 16, 2026
bkhouri added a commit that referenced this pull request Jul 16, 2026
Migrating some unit test suites from XCTest to Swift Testing.

Depends on #920
Relates to: #710
@bkhouri bkhouri changed the title Support Swift Testing in Test helpers [WIP] Support Swift Testing in Test helpers Jul 16, 2026
@bkhouri

bkhouri commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Since the original publication of this PR, it has been split into multiple smaller PRs. This contains change to the test helpers, with the other PR covering the test migrations.

@bkhouri
bkhouri force-pushed the bkhouri/t/main/update_test_helpers_to_support_swift_testing branch from 141e34e to ebf1342 Compare July 17, 2026 03:47
Update some of the test helpers to support both XCTest and Swift Testing
API to help with migrating test to Swift Testing.

Relates to: #710
@bkhouri
bkhouri force-pushed the bkhouri/t/main/update_test_helpers_to_support_swift_testing branch from ebf1342 to 4232a83 Compare July 17, 2026 03:58
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate all the HelpGenearation unit tests from XCTest to Swift Testing.

Depends on #920
Relates to: #710
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate the `SplitArgumentTests` test suite from XCTest to Swift
Testing.

Depends on #920
Relates to: #710
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate all the HelpGenearation unit tests from XCTest to Swift Testing.

Depends on #920
Relates to: #710
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate the CustomParsingEndToEndTests test suite to Swift Testing.

Linting requires a Swift Toolchain that contains swiftlang/swift-format#1243

Relates to #710
Depends on #920
Depends on swiftlang/swift-format#1243
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate a limited set of `ArgumentParserEndToEndTests` test suites from
XCTest to Swift Testing.

Depends on #920
Related to #710
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate the `SplitArgumentTests` test suite from XCTest to Swift
Testing.

Depends on #920
Relates to: #710
@bkhouri bkhouri changed the title [WIP] Support Swift Testing in Test helpers Support Swift Testing in Test helpers Jul 17, 2026
@bkhouri
bkhouri marked this pull request as ready for review July 17, 2026 04:30
@bkhouri
bkhouri requested a review from natecook1000 as a code owner July 17, 2026 04:30
@bkhouri
bkhouri requested a review from rauhul as a code owner July 17, 2026 04:30
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate CustomParsingEndToEndTests and MirrorTests test suite to Swift
Testing.

Linting requires a Swift Toolchain that contains swiftlang/swift-format#1243

Relates to #710
Depends on #920
Depends on swiftlang/swift-format#1243
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrating some unit test suites from XCTest to Swift Testing.

Depends on #920
Relates to: #710
@bkhouri
bkhouri marked this pull request as draft July 17, 2026 06:37
@bkhouri bkhouri changed the title Support Swift Testing in Test helpers [WIP] Support Swift Testing in Test helpers Jul 17, 2026
@bkhouri bkhouri changed the title [WIP] Support Swift Testing in Test helpers Support Swift Testing in Test helpers Jul 17, 2026
@bkhouri
bkhouri marked this pull request as ready for review July 17, 2026 15:30
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate all tests in target 'ArgumentParserPackageManagerTests' from
XCTest to Swift Testing.

Depends on #920
Related to #710
@rauhul
rauhul merged commit 8e4b90c into main Jul 17, 2026
39 checks passed
@rauhul
rauhul deleted the bkhouri/t/main/update_test_helpers_to_support_swift_testing branch July 17, 2026 16:32
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate all the HelpGenearation unit tests from XCTest to Swift Testing.

Depends on #920
Relates to: #710
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrating some unit test suites from XCTest to Swift Testing.

Depends on #920
Relates to: #710
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate CustomParsingEndToEndTests and MirrorTests test suite to Swift
Testing.

Linting requires a Swift Toolchain that contains swiftlang/swift-format#1243

Relates to #710
Depends on #920
Depends on swiftlang/swift-format#1243
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate all tests in target 'ArgumentParserPackageManagerTests' from
XCTest to Swift Testing.

Depends on #920
Related to #710
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate a limited set of `ArgumentParserEndToEndTests` test suites from
XCTest to Swift Testing.

Depends on #920
Related to #710
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrating some unit test suites from XCTest to Swift Testing.

Depends on #920
Relates to: #710
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate all tests in target 'ArgumentParserPackageManagerTests' from
XCTest to Swift Testing.

Depends on #920
Related to #710
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate a limited set of `ArgumentParserEndToEndTests` test suites from
XCTest to Swift Testing.

Depends on #920
Related to #710
bkhouri added a commit that referenced this pull request Jul 17, 2026
Migrate all the HelpGenearation unit tests from XCTest to Swift Testing.

Depends on #920
Relates to: #710
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants